<script>
    import {login} from "./services/index"
	export default {
		onLaunch: function() {
		   wx.login({
			   success:async res=>{
				   console.log(112222);
				let result =await login(res.code);
				console.log(result);
				wx.setStorageSync( 'openid' , result.data.openid )
			     }
		       })
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	page{
		width: 100%;
		height: 100%;
	}
</style>
